package Lexical;

public class Boolean extends Token 
{
	public final boolean value;		
	
	/**
	 * Constructor of a Token of the type Boolean.
	 * @param value a boolean value for the Boolean Token.
	 */
	public Boolean (boolean value) 
	{ 
		super (Tag.BOOL); 
		this.value = value; 
	}
	
	/**
	 * Constructor of a Token of the type Boolean.
	 * @param value a boolean value for the Boolean Token.
	 * @param line	the line of the code where the Token was found.
	 */
	public Boolean (boolean value, int line)
	{
		super (Tag.BOOL, line);
		this.value = value;
	}
	
	public String toString()
	{
		return String.valueOf(value);
	}
	
}
